﻿namespace Triad.Controls
{
    using System;
    using System.Security.Permissions;
    using System.Web;

    [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
    public sealed class tCallServerEventArgs : EventArgs
    {
        private string _returnMessage { get; set; }
        private string _message { get; set; }
        private string _sender { get; set; }
        /// <summary>
        /// Initializes a new instance of the <see cref="tCallServerEventArgs"/> class.
        /// </summary>
        /// <param name="message">The message.</param>
        /// <param name="sender">The sender.</param>
        /// <param name="retVal">The ret val.</param>
        public tCallServerEventArgs(string message, string sender, string retVal)
        {
            this._returnMessage = retVal;
            this._message = message;
            this._sender = sender;
        }
        public string ReturnMessage
        {
            get
            {
                return "ProcessUIUpdates(" + this._returnMessage + ");";
            }
            set
            {
                _returnMessage = value;
            }
        }
        public string Message
        {
            get
            {
                return this._message;
            }
            set
            {
                _message = value;
            }
        }

        public string Sender
        {
            get
            {
                return this._sender;
            }
            set
            {
                _sender = value;
            }
        }
    }
}
